package com.onedec.entity;

import java.util.ArrayList;
import java.util.List;

public class OnedecAccountingVouchersExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OnedecAccountingVouchersExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAccountingVouchersIdIsNull() {
            addCriterion("accounting_vouchers_id is null");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchersIdIsNotNull() {
            addCriterion("accounting_vouchers_id is not null");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchersIdEqualTo(Integer value) {
            addCriterion("accounting_vouchers_id =", value, "accountingVouchersId");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchersIdNotEqualTo(Integer value) {
            addCriterion("accounting_vouchers_id <>", value, "accountingVouchersId");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchersIdGreaterThan(Integer value) {
            addCriterion("accounting_vouchers_id >", value, "accountingVouchersId");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchersIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("accounting_vouchers_id >=", value, "accountingVouchersId");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchersIdLessThan(Integer value) {
            addCriterion("accounting_vouchers_id <", value, "accountingVouchersId");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchersIdLessThanOrEqualTo(Integer value) {
            addCriterion("accounting_vouchers_id <=", value, "accountingVouchersId");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchersIdIn(List<Integer> values) {
            addCriterion("accounting_vouchers_id in", values, "accountingVouchersId");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchersIdNotIn(List<Integer> values) {
            addCriterion("accounting_vouchers_id not in", values, "accountingVouchersId");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchersIdBetween(Integer value1, Integer value2) {
            addCriterion("accounting_vouchers_id between", value1, value2, "accountingVouchersId");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchersIdNotBetween(Integer value1, Integer value2) {
            addCriterion("accounting_vouchers_id not between", value1, value2, "accountingVouchersId");
            return (Criteria) this;
        }

        public Criteria andAccountingEntryIdIsNull() {
            addCriterion("accounting_entry_id is null");
            return (Criteria) this;
        }

        public Criteria andAccountingEntryIdIsNotNull() {
            addCriterion("accounting_entry_id is not null");
            return (Criteria) this;
        }

        public Criteria andAccountingEntryIdEqualTo(Integer value) {
            addCriterion("accounting_entry_id =", value, "accountingEntryId");
            return (Criteria) this;
        }

        public Criteria andAccountingEntryIdNotEqualTo(Integer value) {
            addCriterion("accounting_entry_id <>", value, "accountingEntryId");
            return (Criteria) this;
        }

        public Criteria andAccountingEntryIdGreaterThan(Integer value) {
            addCriterion("accounting_entry_id >", value, "accountingEntryId");
            return (Criteria) this;
        }

        public Criteria andAccountingEntryIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("accounting_entry_id >=", value, "accountingEntryId");
            return (Criteria) this;
        }

        public Criteria andAccountingEntryIdLessThan(Integer value) {
            addCriterion("accounting_entry_id <", value, "accountingEntryId");
            return (Criteria) this;
        }

        public Criteria andAccountingEntryIdLessThanOrEqualTo(Integer value) {
            addCriterion("accounting_entry_id <=", value, "accountingEntryId");
            return (Criteria) this;
        }

        public Criteria andAccountingEntryIdIn(List<Integer> values) {
            addCriterion("accounting_entry_id in", values, "accountingEntryId");
            return (Criteria) this;
        }

        public Criteria andAccountingEntryIdNotIn(List<Integer> values) {
            addCriterion("accounting_entry_id not in", values, "accountingEntryId");
            return (Criteria) this;
        }

        public Criteria andAccountingEntryIdBetween(Integer value1, Integer value2) {
            addCriterion("accounting_entry_id between", value1, value2, "accountingEntryId");
            return (Criteria) this;
        }

        public Criteria andAccountingEntryIdNotBetween(Integer value1, Integer value2) {
            addCriterion("accounting_entry_id not between", value1, value2, "accountingEntryId");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressIsNull() {
            addCriterion("accounting_proof_of_address is null");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressIsNotNull() {
            addCriterion("accounting_proof_of_address is not null");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressEqualTo(String value) {
            addCriterion("accounting_proof_of_address =", value, "accountingProofOfAddress");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressNotEqualTo(String value) {
            addCriterion("accounting_proof_of_address <>", value, "accountingProofOfAddress");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressGreaterThan(String value) {
            addCriterion("accounting_proof_of_address >", value, "accountingProofOfAddress");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressGreaterThanOrEqualTo(String value) {
            addCriterion("accounting_proof_of_address >=", value, "accountingProofOfAddress");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressLessThan(String value) {
            addCriterion("accounting_proof_of_address <", value, "accountingProofOfAddress");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressLessThanOrEqualTo(String value) {
            addCriterion("accounting_proof_of_address <=", value, "accountingProofOfAddress");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressLike(String value) {
            addCriterion("accounting_proof_of_address like", value, "accountingProofOfAddress");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressNotLike(String value) {
            addCriterion("accounting_proof_of_address not like", value, "accountingProofOfAddress");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressIn(List<String> values) {
            addCriterion("accounting_proof_of_address in", values, "accountingProofOfAddress");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressNotIn(List<String> values) {
            addCriterion("accounting_proof_of_address not in", values, "accountingProofOfAddress");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressBetween(String value1, String value2) {
            addCriterion("accounting_proof_of_address between", value1, value2, "accountingProofOfAddress");
            return (Criteria) this;
        }

        public Criteria andAccountingProofOfAddressNotBetween(String value1, String value2) {
            addCriterion("accounting_proof_of_address not between", value1, value2, "accountingProofOfAddress");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1IsNull() {
            addCriterion("accounting_vouchers1 is null");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1IsNotNull() {
            addCriterion("accounting_vouchers1 is not null");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1EqualTo(String value) {
            addCriterion("accounting_vouchers1 =", value, "accountingVouchers1");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1NotEqualTo(String value) {
            addCriterion("accounting_vouchers1 <>", value, "accountingVouchers1");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1GreaterThan(String value) {
            addCriterion("accounting_vouchers1 >", value, "accountingVouchers1");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1GreaterThanOrEqualTo(String value) {
            addCriterion("accounting_vouchers1 >=", value, "accountingVouchers1");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1LessThan(String value) {
            addCriterion("accounting_vouchers1 <", value, "accountingVouchers1");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1LessThanOrEqualTo(String value) {
            addCriterion("accounting_vouchers1 <=", value, "accountingVouchers1");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1Like(String value) {
            addCriterion("accounting_vouchers1 like", value, "accountingVouchers1");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1NotLike(String value) {
            addCriterion("accounting_vouchers1 not like", value, "accountingVouchers1");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1In(List<String> values) {
            addCriterion("accounting_vouchers1 in", values, "accountingVouchers1");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1NotIn(List<String> values) {
            addCriterion("accounting_vouchers1 not in", values, "accountingVouchers1");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1Between(String value1, String value2) {
            addCriterion("accounting_vouchers1 between", value1, value2, "accountingVouchers1");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers1NotBetween(String value1, String value2) {
            addCriterion("accounting_vouchers1 not between", value1, value2, "accountingVouchers1");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2IsNull() {
            addCriterion("accounting_vouchers2 is null");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2IsNotNull() {
            addCriterion("accounting_vouchers2 is not null");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2EqualTo(String value) {
            addCriterion("accounting_vouchers2 =", value, "accountingVouchers2");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2NotEqualTo(String value) {
            addCriterion("accounting_vouchers2 <>", value, "accountingVouchers2");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2GreaterThan(String value) {
            addCriterion("accounting_vouchers2 >", value, "accountingVouchers2");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2GreaterThanOrEqualTo(String value) {
            addCriterion("accounting_vouchers2 >=", value, "accountingVouchers2");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2LessThan(String value) {
            addCriterion("accounting_vouchers2 <", value, "accountingVouchers2");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2LessThanOrEqualTo(String value) {
            addCriterion("accounting_vouchers2 <=", value, "accountingVouchers2");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2Like(String value) {
            addCriterion("accounting_vouchers2 like", value, "accountingVouchers2");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2NotLike(String value) {
            addCriterion("accounting_vouchers2 not like", value, "accountingVouchers2");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2In(List<String> values) {
            addCriterion("accounting_vouchers2 in", values, "accountingVouchers2");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2NotIn(List<String> values) {
            addCriterion("accounting_vouchers2 not in", values, "accountingVouchers2");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2Between(String value1, String value2) {
            addCriterion("accounting_vouchers2 between", value1, value2, "accountingVouchers2");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers2NotBetween(String value1, String value2) {
            addCriterion("accounting_vouchers2 not between", value1, value2, "accountingVouchers2");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3IsNull() {
            addCriterion("accounting_vouchers3 is null");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3IsNotNull() {
            addCriterion("accounting_vouchers3 is not null");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3EqualTo(String value) {
            addCriterion("accounting_vouchers3 =", value, "accountingVouchers3");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3NotEqualTo(String value) {
            addCriterion("accounting_vouchers3 <>", value, "accountingVouchers3");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3GreaterThan(String value) {
            addCriterion("accounting_vouchers3 >", value, "accountingVouchers3");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3GreaterThanOrEqualTo(String value) {
            addCriterion("accounting_vouchers3 >=", value, "accountingVouchers3");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3LessThan(String value) {
            addCriterion("accounting_vouchers3 <", value, "accountingVouchers3");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3LessThanOrEqualTo(String value) {
            addCriterion("accounting_vouchers3 <=", value, "accountingVouchers3");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3Like(String value) {
            addCriterion("accounting_vouchers3 like", value, "accountingVouchers3");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3NotLike(String value) {
            addCriterion("accounting_vouchers3 not like", value, "accountingVouchers3");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3In(List<String> values) {
            addCriterion("accounting_vouchers3 in", values, "accountingVouchers3");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3NotIn(List<String> values) {
            addCriterion("accounting_vouchers3 not in", values, "accountingVouchers3");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3Between(String value1, String value2) {
            addCriterion("accounting_vouchers3 between", value1, value2, "accountingVouchers3");
            return (Criteria) this;
        }

        public Criteria andAccountingVouchers3NotBetween(String value1, String value2) {
            addCriterion("accounting_vouchers3 not between", value1, value2, "accountingVouchers3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}